import dao.ManyDAO;
import dao.OneDAO;
import model.Many;
import model.One;

public class Main {
    public static void main(String[] args) {
        //One{idOne=1, name='1', manies=[Many{idMany=1, name='1_1', one=1}, Many{idMany=2, name='2_1', one=1}, Many{idMany=3, name='3_1', one=1}]}
        OneDAO oneDAO = new OneDAO();
        One one = oneDAO.getOneById(1);
        System.out.println(one);

        //Many{idMany=2, name='2_1', one=1}
        ManyDAO manyDAO = new ManyDAO();
        Many many = manyDAO.getManyById(2);
        System.out.println(many);

    }
}
